package com.linkage.category.repository;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.linkage.category.pojo.Category;
import com.linkage.user.pojo.User;

/**
 * 
 * @author LuoYunHui
 *
 */

@Repository
public interface CategoryRepository {
	
	public List<Category> queryAll();

    public void save(Category category);

    public void update(Category category);

    public void delete(@Param("categoryId") int categoryId);

    public Category loadOne(@Param("categoryId") int categoryId);

    public Category loadByCategoryName(@Param("categoryName") String categoryName);

	public void addCategory(Category category);

	public void deleteCategoryById(int categoryId);

	public void UpdateCategory(Category category);
}
